<?php
namespace App\Module\User\Controller;

use App\Common\Controller\AbstractController;
use App\Module\User\Service\TeacherService;
use Hyperf\Di\Annotation\Inject;

class TeacherController extends AbstractController{

    /**
     * @Inject()
     * @var TeacherService $teacherService
     */
    private $teacherService;

    public function search(){
        $pagesize = $this->request->input("pagesize");

        return $this->response->json($this->teacherService->search($pagesize));
    }
}